package com.mapper;

import com.entity.User;
import com.servlet.UserTable;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * Created by webrx on 2017/6/17.
 */
public interface UserMapper {
    @Select("select * from user_table where name=#{name}")
    public User queryByName(@Param("name") String ss);

    @Insert("insert into user_table values(null,#{name},#{gender},#{password})")
    public int add(User user);
}
